package com.appspot.didit.client.workitem;

import com.google.gwt.event.shared.GwtEvent;

public class WorkitemUpdatedEvent extends GwtEvent<WorkitemUpdatedHandler> {

    private static Type<WorkitemUpdatedHandler> TYPE;

    public int getRowCount() {
		return rowCount;
	}

	public void setRowCount(int rowCount) {
		this.rowCount = rowCount;
	}

	private int rowCount;
    
    public static Type<WorkitemUpdatedHandler> getType() {
            return TYPE != null ? TYPE
                            : (TYPE = new Type<WorkitemUpdatedHandler>());
    }

    public WorkitemUpdatedEvent(int rowCount) {
    	this.rowCount = rowCount;
    }

    @Override
    public final Type<WorkitemUpdatedHandler> getAssociatedType() {
            return getType();
    }

    @Override
    protected void dispatch(WorkitemUpdatedHandler handler) {
            handler.onWorkitemUpdated(this);
    }

}